export const CollapsedReducer = (
  prevState = {
    isCollapsed: false,
  },
  action
) => {
  let { type } = action;
  switch (type) {
    case "change_collapesd":
      let newstate = { ...prevState };
      newstate.isCollapsed = !newstate.isCollapsed;
      return newstate;
    default:
      return prevState;
  }
};
